package com.neutech.running;


import com.neutech.util.ImageUtil;

import java.awt.Graphics;
import java.awt.Image;

public class PencilUp extends Pencil{
    private Image image;
    public PencilUp(int x,int y){
        init(x,y);
    }
    @Override
    public void draw(Graphics g){
        g.drawImage(image,getX(),getY(),null);

    }
    private void init(int x,int y){
        image= ImageUtil.get("pie_up");
        setX(x);
        setY(y);
        setWidth(image.getWidth(null));
        setHeight(image.getHeight(null));
    }
}

